<?php
require_once TEMPLATEPATH.'/views/process/process-lien-he.php';
if(wp_verify_nonce($_POST['act_contact_us_send'],'act_contact_us_send'))
{
	if($_POST['Captcha'] != $_SESSION['ma_xac_nhan'])
	{
		$error_result = "Xin Lỗi,Mã an toàn không hợp lệ.";
		$_SESSION['send_request'] = $_POST;
		require_once TEMPLATEPATH.'/views/view-lien-he.php';		
	}
	else 
	{
		$error_result = "Cảm ơn đã gửi yêu cầu tới chúng tôi.";
		$_SESSION['send_request'] = null;
		include TEMPLATEPATH.'/mails/xtemplate-email-contact-us.php';
		require_once TEMPLATEPATH.'/views/view-lien-he.php';
		$_SESSION['ma_xac_nhan'] = null;
	}
}
else 
{ 
	$_SESSION['send_request'] = null;
	require_once TEMPLATEPATH.'/views/view-lien-he.php';
} 
  ?>     